\(\int \frac {(d+c^2 d x^2) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx\) [204]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F(-2)]
   Mupad [F(-1)]

Optimal result

Integrand size = 24, antiderivative size = 131 \[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=2 b^2 c^2 d x-2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}-4 b c d (a+b \text {arcsinh}(c x)) \text {arctanh}\left (e^{\text {arcsinh}(c x)}\right )-2 b^2 c d \operatorname {PolyLog}\left (2,-e^{\text {arcsinh}(c x)}\right )+2 b^2 c d \operatorname {PolyLog}\left (2,e^{\text {arcsinh}(c x)}\right ) \]

[Out]

2*b^2*c^2*d*x+2*c^2*d*x*(a+b*arcsinh(c*x))^2-d*(c^2*x^2+1)*(a+b*arcsinh(c*x))^2/x-4*b*c*d*(a+b*arcsinh(c*x))*a
rctanh(c*x+(c^2*x^2+1)^(1/2))-2*b^2*c*d*polylog(2,-c*x-(c^2*x^2+1)^(1/2))+2*b^2*c*d*polylog(2,c*x+(c^2*x^2+1)^
(1/2))-2*b*c*d*(a+b*arcsinh(c*x))*(c^2*x^2+1)^(1/2)

Rubi [A] (verified)

Time = 0.21 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {5807, 5772, 5798, 8, 5806, 5816, 4267, 2317, 2438} \[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=-4 b c d \text {arctanh}\left (e^{\text {arcsinh}(c x)}\right ) (a+b \text {arcsinh}(c x))-2 b c d \sqrt {c^2 x^2+1} (a+b \text {arcsinh}(c x))-\frac {d \left (c^2 x^2+1\right ) (a+b \text {arcsinh}(c x))^2}{x}+2 c^2 d x (a+b \text {arcsinh}(c x))^2-2 b^2 c d \operatorname {PolyLog}\left (2,-e^{\text {arcsinh}(c x)}\right )+2 b^2 c d \operatorname {PolyLog}\left (2,e^{\text {arcsinh}(c x)}\right )+2 b^2 c^2 d x \]

[In]

Int[((d + c^2*d*x^2)*(a + b*ArcSinh[c*x])^2)/x^2,x]

[Out]

2*b^2*c^2*d*x - 2*b*c*d*Sqrt[1 + c^2*x^2]*(a + b*ArcSinh[c*x]) + 2*c^2*d*x*(a + b*ArcSinh[c*x])^2 - (d*(1 + c^
2*x^2)*(a + b*ArcSinh[c*x])^2)/x - 4*b*c*d*(a + b*ArcSinh[c*x])*ArcTanh[E^ArcSinh[c*x]] - 2*b^2*c*d*PolyLog[2,
 -E^ArcSinh[c*x]] + 2*b^2*c*d*PolyLog[2, E^ArcSinh[c*x]]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2317

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 4267

Int[csc[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[-2*(c + d*x)^m*(Ar
cTanh[E^((-I)*e + f*fz*x)]/(f*fz*I)), x] + (-Dist[d*(m/(f*fz*I)), Int[(c + d*x)^(m - 1)*Log[1 - E^((-I)*e + f*
fz*x)], x], x] + Dist[d*(m/(f*fz*I)), Int[(c + d*x)^(m - 1)*Log[1 + E^((-I)*e + f*fz*x)], x], x]) /; FreeQ[{c,
 d, e, f, fz}, x] && IGtQ[m, 0]

Rule 5772

Int[((a_.) + ArcSinh[(c_.)*(x_)]*(b_.))^(n_.), x_Symbol] :> Simp[x*(a + b*ArcSinh[c*x])^n, x] - Dist[b*c*n, In
t[x*((a + b*ArcSinh[c*x])^(n - 1)/Sqrt[1 + c^2*x^2]), x], x] /; FreeQ[{a, b, c}, x] && GtQ[n, 0]

Rule 5798

Int[((a_.) + ArcSinh[(c_.)*(x_)]*(b_.))^(n_.)*(x_)*((d_) + (e_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(d + e*x^2)^
(p + 1)*((a + b*ArcSinh[c*x])^n/(2*e*(p + 1))), x] - Dist[b*(n/(2*c*(p + 1)))*Simp[(d + e*x^2)^p/(1 + c^2*x^2)
^p], Int[(1 + c^2*x^2)^(p + 1/2)*(a + b*ArcSinh[c*x])^(n - 1), x], x] /; FreeQ[{a, b, c, d, e, p}, x] && EqQ[e
, c^2*d] && GtQ[n, 0] && NeQ[p, -1]

Rule 5806

Int[((a_.) + ArcSinh[(c_.)*(x_)]*(b_.))^(n_.)*((f_.)*(x_))^(m_)*Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Simp[(
f*x)^(m + 1)*Sqrt[d + e*x^2]*((a + b*ArcSinh[c*x])^n/(f*(m + 2))), x] + (Dist[(1/(m + 2))*Simp[Sqrt[d + e*x^2]
/Sqrt[1 + c^2*x^2]], Int[(f*x)^m*((a + b*ArcSinh[c*x])^n/Sqrt[1 + c^2*x^2]), x], x] - Dist[b*c*(n/(f*(m + 2)))
*Simp[Sqrt[d + e*x^2]/Sqrt[1 + c^2*x^2]], Int[(f*x)^(m + 1)*(a + b*ArcSinh[c*x])^(n - 1), x], x]) /; FreeQ[{a,
 b, c, d, e, f, m}, x] && EqQ[e, c^2*d] && IGtQ[n, 0] && (IGtQ[m, -2] || EqQ[n, 1])

Rule 5807

Int[((a_.) + ArcSinh[(c_.)*(x_)]*(b_.))^(n_.)*((f_.)*(x_))^(m_)*((d_) + (e_.)*(x_)^2)^(p_.), x_Symbol] :> Simp
[(f*x)^(m + 1)*(d + e*x^2)^p*((a + b*ArcSinh[c*x])^n/(f*(m + 1))), x] + (-Dist[2*e*(p/(f^2*(m + 1))), Int[(f*x
)^(m + 2)*(d + e*x^2)^(p - 1)*(a + b*ArcSinh[c*x])^n, x], x] - Dist[b*c*(n/(f*(m + 1)))*Simp[(d + e*x^2)^p/(1
+ c^2*x^2)^p], Int[(f*x)^(m + 1)*(1 + c^2*x^2)^(p - 1/2)*(a + b*ArcSinh[c*x])^(n - 1), x], x]) /; FreeQ[{a, b,
 c, d, e, f}, x] && EqQ[e, c^2*d] && GtQ[n, 0] && GtQ[p, 0] && LtQ[m, -1]

Rule 5816

Int[(((a_.) + ArcSinh[(c_.)*(x_)]*(b_.))^(n_.)*(x_)^(m_))/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Dist[(1/c^(m
 + 1))*Simp[Sqrt[1 + c^2*x^2]/Sqrt[d + e*x^2]], Subst[Int[(a + b*x)^n*Sinh[x]^m, x], x, ArcSinh[c*x]], x] /; F
reeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d] && IGtQ[n, 0] && IntegerQ[m]

Rubi steps \begin{align*} \text {integral}& = -\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}+(2 b c d) \int \frac {\sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))}{x} \, dx+\left (2 c^2 d\right ) \int (a+b \text {arcsinh}(c x))^2 \, dx \\ & = 2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}+(2 b c d) \int \frac {a+b \text {arcsinh}(c x)}{x \sqrt {1+c^2 x^2}} \, dx-\left (2 b^2 c^2 d\right ) \int 1 \, dx-\left (4 b c^3 d\right ) \int \frac {x (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx \\ & = -2 b^2 c^2 d x-2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}+(2 b c d) \text {Subst}(\int (a+b x) \text {csch}(x) \, dx,x,\text {arcsinh}(c x))+\left (4 b^2 c^2 d\right ) \int 1 \, dx \\ & = 2 b^2 c^2 d x-2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}-4 b c d (a+b \text {arcsinh}(c x)) \text {arctanh}\left (e^{\text {arcsinh}(c x)}\right )-\left (2 b^2 c d\right ) \text {Subst}\left (\int \log \left (1-e^x\right ) \, dx,x,\text {arcsinh}(c x)\right )+\left (2 b^2 c d\right ) \text {Subst}\left (\int \log \left (1+e^x\right ) \, dx,x,\text {arcsinh}(c x)\right ) \\ & = 2 b^2 c^2 d x-2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}-4 b c d (a+b \text {arcsinh}(c x)) \text {arctanh}\left (e^{\text {arcsinh}(c x)}\right )-\left (2 b^2 c d\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{\text {arcsinh}(c x)}\right )+\left (2 b^2 c d\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{\text {arcsinh}(c x)}\right ) \\ & = 2 b^2 c^2 d x-2 b c d \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))+2 c^2 d x (a+b \text {arcsinh}(c x))^2-\frac {d \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))^2}{x}-4 b c d (a+b \text {arcsinh}(c x)) \text {arctanh}\left (e^{\text {arcsinh}(c x)}\right )-2 b^2 c d \operatorname {PolyLog}\left (2,-e^{\text {arcsinh}(c x)}\right )+2 b^2 c d \operatorname {PolyLog}\left (2,e^{\text {arcsinh}(c x)}\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.32 (sec) , antiderivative size = 192, normalized size of antiderivative = 1.47 \[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=\frac {d \left (-a^2+a^2 c^2 x^2+2 a b c x \left (-\sqrt {1+c^2 x^2}+c x \text {arcsinh}(c x)\right )+b^2 c x \left (2 c x-2 \sqrt {1+c^2 x^2} \text {arcsinh}(c x)+c x \text {arcsinh}(c x)^2\right )-2 a b \left (\text {arcsinh}(c x)+c x \text {arctanh}\left (\sqrt {1+c^2 x^2}\right )\right )-b^2 \left (\text {arcsinh}(c x) \left (\text {arcsinh}(c x)+2 c x \left (-\log \left (1-e^{-\text {arcsinh}(c x)}\right )+\log \left (1+e^{-\text {arcsinh}(c x)}\right )\right )\right )-2 c x \operatorname {PolyLog}\left (2,-e^{-\text {arcsinh}(c x)}\right )+2 c x \operatorname {PolyLog}\left (2,e^{-\text {arcsinh}(c x)}\right )\right )\right )}{x} \]

[In]

Integrate[((d + c^2*d*x^2)*(a + b*ArcSinh[c*x])^2)/x^2,x]

[Out]

(d*(-a^2 + a^2*c^2*x^2 + 2*a*b*c*x*(-Sqrt[1 + c^2*x^2] + c*x*ArcSinh[c*x]) + b^2*c*x*(2*c*x - 2*Sqrt[1 + c^2*x
^2]*ArcSinh[c*x] + c*x*ArcSinh[c*x]^2) - 2*a*b*(ArcSinh[c*x] + c*x*ArcTanh[Sqrt[1 + c^2*x^2]]) - b^2*(ArcSinh[
c*x]*(ArcSinh[c*x] + 2*c*x*(-Log[1 - E^(-ArcSinh[c*x])] + Log[1 + E^(-ArcSinh[c*x])])) - 2*c*x*PolyLog[2, -E^(
-ArcSinh[c*x])] + 2*c*x*PolyLog[2, E^(-ArcSinh[c*x])])))/x

Maple [A] (verified)

Time = 0.12 (sec) , antiderivative size = 239, normalized size of antiderivative = 1.82

method result size
derivativedivides \(c \left (d \,a^{2} \left (c x -\frac {1}{c x}\right )+d \,b^{2} \operatorname {arcsinh}\left (c x \right )^{2} c x -2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \sqrt {c^{2} x^{2}+1}+2 d \,b^{2} c x -\frac {d \,b^{2} \operatorname {arcsinh}\left (c x \right )^{2}}{c x}-2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \ln \left (1+c x +\sqrt {c^{2} x^{2}+1}\right )-2 d \,b^{2} \operatorname {polylog}\left (2, -c x -\sqrt {c^{2} x^{2}+1}\right )+2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \ln \left (1-c x -\sqrt {c^{2} x^{2}+1}\right )+2 d \,b^{2} \operatorname {polylog}\left (2, c x +\sqrt {c^{2} x^{2}+1}\right )+2 d a b \left (\operatorname {arcsinh}\left (c x \right ) c x -\frac {\operatorname {arcsinh}\left (c x \right )}{c x}-\sqrt {c^{2} x^{2}+1}-\operatorname {arctanh}\left (\frac {1}{\sqrt {c^{2} x^{2}+1}}\right )\right )\right )\) \(239\)
default \(c \left (d \,a^{2} \left (c x -\frac {1}{c x}\right )+d \,b^{2} \operatorname {arcsinh}\left (c x \right )^{2} c x -2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \sqrt {c^{2} x^{2}+1}+2 d \,b^{2} c x -\frac {d \,b^{2} \operatorname {arcsinh}\left (c x \right )^{2}}{c x}-2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \ln \left (1+c x +\sqrt {c^{2} x^{2}+1}\right )-2 d \,b^{2} \operatorname {polylog}\left (2, -c x -\sqrt {c^{2} x^{2}+1}\right )+2 d \,b^{2} \operatorname {arcsinh}\left (c x \right ) \ln \left (1-c x -\sqrt {c^{2} x^{2}+1}\right )+2 d \,b^{2} \operatorname {polylog}\left (2, c x +\sqrt {c^{2} x^{2}+1}\right )+2 d a b \left (\operatorname {arcsinh}\left (c x \right ) c x -\frac {\operatorname {arcsinh}\left (c x \right )}{c x}-\sqrt {c^{2} x^{2}+1}-\operatorname {arctanh}\left (\frac {1}{\sqrt {c^{2} x^{2}+1}}\right )\right )\right )\) \(239\)
parts \(d \,a^{2} \left (c^{2} x -\frac {1}{x}\right )+d \,b^{2} c^{2} \operatorname {arcsinh}\left (c x \right )^{2} x -2 d \,b^{2} c \,\operatorname {arcsinh}\left (c x \right ) \sqrt {c^{2} x^{2}+1}+2 b^{2} c^{2} d x -\frac {d \,b^{2} \operatorname {arcsinh}\left (c x \right )^{2}}{x}-2 d \,b^{2} c \,\operatorname {arcsinh}\left (c x \right ) \ln \left (1+c x +\sqrt {c^{2} x^{2}+1}\right )-2 b^{2} c d \operatorname {polylog}\left (2, -c x -\sqrt {c^{2} x^{2}+1}\right )+2 d \,b^{2} c \,\operatorname {arcsinh}\left (c x \right ) \ln \left (1-c x -\sqrt {c^{2} x^{2}+1}\right )+2 b^{2} c d \operatorname {polylog}\left (2, c x +\sqrt {c^{2} x^{2}+1}\right )+2 d a b c \left (\operatorname {arcsinh}\left (c x \right ) c x -\frac {\operatorname {arcsinh}\left (c x \right )}{c x}-\sqrt {c^{2} x^{2}+1}-\operatorname {arctanh}\left (\frac {1}{\sqrt {c^{2} x^{2}+1}}\right )\right )\) \(243\)

[In]

int((c^2*d*x^2+d)*(a+b*arcsinh(c*x))^2/x^2,x,method=_RETURNVERBOSE)

[Out]

c*(d*a^2*(c*x-1/c/x)+d*b^2*arcsinh(c*x)^2*c*x-2*d*b^2*arcsinh(c*x)*(c^2*x^2+1)^(1/2)+2*d*b^2*c*x-d*b^2*arcsinh
(c*x)^2/c/x-2*d*b^2*arcsinh(c*x)*ln(1+c*x+(c^2*x^2+1)^(1/2))-2*d*b^2*polylog(2,-c*x-(c^2*x^2+1)^(1/2))+2*d*b^2
*arcsinh(c*x)*ln(1-c*x-(c^2*x^2+1)^(1/2))+2*d*b^2*polylog(2,c*x+(c^2*x^2+1)^(1/2))+2*d*a*b*(arcsinh(c*x)*c*x-a
rcsinh(c*x)/c/x-(c^2*x^2+1)^(1/2)-arctanh(1/(c^2*x^2+1)^(1/2))))

Fricas [F]

\[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=\int { \frac {{\left (c^{2} d x^{2} + d\right )} {\left (b \operatorname {arsinh}\left (c x\right ) + a\right )}^{2}}{x^{2}} \,d x } \]

[In]

integrate((c^2*d*x^2+d)*(a+b*arcsinh(c*x))^2/x^2,x, algorithm="fricas")

[Out]

integral((a^2*c^2*d*x^2 + a^2*d + (b^2*c^2*d*x^2 + b^2*d)*arcsinh(c*x)^2 + 2*(a*b*c^2*d*x^2 + a*b*d)*arcsinh(c
*x))/x^2, x)

Sympy [F]

\[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=d \left (\int a^{2} c^{2}\, dx + \int \frac {a^{2}}{x^{2}}\, dx + \int b^{2} c^{2} \operatorname {asinh}^{2}{\left (c x \right )}\, dx + \int \frac {b^{2} \operatorname {asinh}^{2}{\left (c x \right )}}{x^{2}}\, dx + \int 2 a b c^{2} \operatorname {asinh}{\left (c x \right )}\, dx + \int \frac {2 a b \operatorname {asinh}{\left (c x \right )}}{x^{2}}\, dx\right ) \]

[In]

integrate((c**2*d*x**2+d)*(a+b*asinh(c*x))**2/x**2,x)

[Out]

d*(Integral(a**2*c**2, x) + Integral(a**2/x**2, x) + Integral(b**2*c**2*asinh(c*x)**2, x) + Integral(b**2*asin
h(c*x)**2/x**2, x) + Integral(2*a*b*c**2*asinh(c*x), x) + Integral(2*a*b*asinh(c*x)/x**2, x))

Maxima [F]

\[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=\int { \frac {{\left (c^{2} d x^{2} + d\right )} {\left (b \operatorname {arsinh}\left (c x\right ) + a\right )}^{2}}{x^{2}} \,d x } \]

[In]

integrate((c^2*d*x^2+d)*(a+b*arcsinh(c*x))^2/x^2,x, algorithm="maxima")

[Out]

b^2*c^2*d*x*arcsinh(c*x)^2 + 2*b^2*c^2*d*(x - sqrt(c^2*x^2 + 1)*arcsinh(c*x)/c) + a^2*c^2*d*x + 2*(c*x*arcsinh
(c*x) - sqrt(c^2*x^2 + 1))*a*b*c*d - 2*(c*arcsinh(1/(c*abs(x))) + arcsinh(c*x)/x)*a*b*d - b^2*d*(log(c*x + sqr
t(c^2*x^2 + 1))^2/x - integrate(2*(c^3*x^2 + sqrt(c^2*x^2 + 1)*c^2*x + c)*log(c*x + sqrt(c^2*x^2 + 1))/(c^3*x^
4 + c*x^2 + (c^2*x^3 + x)*sqrt(c^2*x^2 + 1)), x)) - a^2*d/x

Giac [F(-2)]

Exception generated. \[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=\text {Exception raised: TypeError} \]

[In]

integrate((c^2*d*x^2+d)*(a+b*arcsinh(c*x))^2/x^2,x, algorithm="giac")

[Out]

Exception raised: TypeError >> an error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:sym2poly/r2sym(const gen & e,const index_m & i,const vecteur & l) Error: Bad Argument Value

Mupad [F(-1)]

Timed out. \[ \int \frac {\left (d+c^2 d x^2\right ) (a+b \text {arcsinh}(c x))^2}{x^2} \, dx=\int \frac {{\left (a+b\,\mathrm {asinh}\left (c\,x\right )\right )}^2\,\left (d\,c^2\,x^2+d\right )}{x^2} \,d x \]

[In]

int(((a + b*asinh(c*x))^2*(d + c^2*d*x^2))/x^2,x)

[Out]

int(((a + b*asinh(c*x))^2*(d + c^2*d*x^2))/x^2, x)